system of quadratic and linear equation